package com.zhang.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * 城市实体类
 */
@Data
@NoArgsConstructor
@ToString
public class City {
    /**城市编号*/
    private int id;
    /**城市名称*/
    private String name;

    public City(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "City{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}'+"\n";
    }
}
